package com.hlkj.pay.app.common;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.enums.CommonEnum;

/**
 * @author HlpayTeam
 * @date 2024/09/13 15:15
 */
public interface IUploadService {
	/**
	 * 通用文件上传
	 * @param file
	 * @param ossEnum
	 * @return
	 */
	CommonResult<String> upload(MultipartFile file, CommonEnum.OssEnum ossEnum);
	/**
	 * 二进制
	 * @param fileArray
	 * @param ossEnum
	 * @return
	 */
	CommonResult<String> upload(byte[] fileArray, CommonEnum.OssEnum ossEnum);
	/**
	 * 二进制
	 * @param fileArray
	 * @param ossEnum
	 * @return
	 */
	CommonResult<String> uploadLocalFile(byte[] fileArray, String fileName,CommonEnum.OssEnum ossEnum);
	/**
	 * 二进制
	 * @return
	 */
	CommonResult<String> uploadLocalFileZip(List<String> fileList, String fileName);
	/**
	 * 秘钥等必须本地上传
	 * @param multipartFile
	 * @return
	 */
	CommonResult<String> uploadSecret(MultipartFile multipartFile);
}
